 <% layout('sitelayout.html') -%>
 <style>
 body,*{margin:0px;padding:0px;}
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
.page-loading {
    width: 100%;
    height: 100%;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}
  .loader {
    border: 3px solid #ddd;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    border-top: 3px solid #000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    position: absolute;
    margin: -25px 0 0 -25px;
}



a{color:#333;}
#title {
    padding: 20px 0px;
    background-color: #fff;
    color: #271200;
    font-size: 32px;
    text-align: center;
    border-bottom: 1px solid #fff;
    margin: 0px;
}
   #content{overflow: hidden;max-width:1000px;width: 100%;margin:0px auto;margin:2px auto;}
   .img-responsive{
    display: block;
    max-width: 100%;
    height: auto;
  }
  
  img {
      vertical-align: middle;
  }



</style>    

<div class="page-loading">
    <div class="loader"></div>
</div>

<div id="title">
   <div id="subject"></div>
   <div id="createDate" style="text-align:right;font-size:12px;color:#888;padding-right:3px;margin-top:-25px;"></div>
</div>
<div id="content" ></div> 
<script src="/js/lib/jquery.js"></script>
<script type="text/javascript">
 function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]); return null;
    }
    

    function product_loadItem(){
     var Jsondata = {};
    Jsondata.id = GetQueryString("id");
	
    $.post("/admin/getcompanyNew",JSON.stringify(Jsondata),function(response){
            console.log(response);
			var Resulthtml="";                  
           $("#content").append("<div class='newCt'>"+response.content+"</div>");
           $("#subject").html(response.title);
           $("#createDate").html(getDate(response.createDate));
		   
           $(".newCt *").css("font-size","15px").css("line-height","28px").css("background-color","#fff");
           $("#content img").css("width","100%")
           $("#content img").addClass("img-responsive");

           $('.page-loading').delay(0).fadeOut(1000);
    });                
}

function getDate(value){
  return (value.substring(0,16).replace("T","日").replace("-","年").replace("-","月"));  
}

$(function(){
product_loadItem();
});
</script>

